home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 November: Tool Chest / Dev.CD Nov 98 TC.toast / Sample Code / Snippets / QuickDraw / Restore Screen Cluts / ColorReset.r < prev    next >
Encoding:
Text File  |  1994-11-09  |  6.4 KB  |  385 lines  |  [TEXT/MPS ]

  1. /******************************************************************************\
  2. *
  3. * Apple Macintosh Developer Technical Support
  4. *
  5. * Resource definitions file for the ColorReset application
  6. *
  7. * Program: ColorReset
  8. * File:    ColorReset.r
  9. *
  10. * by:      Forrest Tanaka
  11. *
  12. * Copyright © 1988-1992 Apple Computer, Inc.
  13. * All rights reserved.
  14. *
  15. \******************************************************************************/
  16.  
  17. #include "Types.r"
  18. #include "SysTypes.r"
  19.  
  20. resource 'WIND' (128, "QMundo Document", purgeable) {
  21.     {0, 0, 256, 256},
  22.     documentProc,
  23.     invisible,
  24.     goAway,
  25.     0x0,
  26.     Untitled
  27. };
  28.  
  29. resource 'WIND' (512, "Choose Profiles", purgeable) {
  30.     {0, 0, 170, 447},
  31.     dBoxProc,
  32.     invisible,
  33.     noGoAway,
  34.     0x0,
  35.     "New Window"
  36. };
  37.  
  38. resource 'MENU' (128) {
  39.     128,
  40.     textMenuProc,
  41.     0x7FFFFFFD,
  42.     enabled,
  43.     apple,
  44.     {    /* array: 2 elements */
  45.         /* [1] */
  46.         "About QMundo", noIcon, noKey, noMark, plain,
  47.         /* [2] */
  48.         "-", noIcon, noKey, noMark, plain
  49.     }
  50. };
  51.  
  52. resource 'MENU' (130) {
  53.     130,
  54.     textMenuProc,
  55.     0x7FFFFFBD,
  56.     enabled,
  57.     "Edit",
  58.     {    /* array: 6 elements */
  59.         /* [1] */
  60.         "Undo", noIcon, "Z", noMark, plain,
  61.         /* [2] */
  62.         "-", noIcon, noKey, noMark, plain,
  63.         /* [3] */
  64.         "Cut", noIcon, "X", noMark, plain,
  65.         /* [4] */
  66.         "Copy", noIcon, "C", noMark, plain,
  67.         /* [5] */
  68.         "Paste", noIcon, "V", noMark, plain,
  69.         /* [6] */
  70.         "Clear", noIcon, noKey, noMark, plain
  71.     }
  72. };
  73.  
  74. resource 'MENU' (129) {
  75.     129,
  76.     textMenuProc,
  77.     0x7FFFFFED,
  78.     enabled,
  79.     "File",
  80.     {    /* array: 6 elements */
  81.         /* [1] */
  82.         "Open...", noIcon, "O", noMark, plain,
  83.         /* [2] */
  84.         "-", noIcon, noKey, noMark, plain,
  85.         /* [3] */
  86.         "Close", noIcon, "W", noMark, plain,
  87.         /* [4] */
  88.         "Save As...", noIcon, noKey, noMark, plain,
  89.         /* [5] */
  90.         "-", noIcon, noKey, noMark, plain,
  91.         /* [6] */
  92.         "Quit", noIcon, "Q", noMark, plain
  93.     }
  94. };
  95.  
  96. resource 'MENU' (131) {
  97.     131,
  98.     textMenuProc,
  99.     allEnabled,
  100.     enabled,
  101.     "Display",
  102.     {    /* array: 2 elements */
  103.         /* [1] */
  104.         "Reset Colors With Palette", noIcon, noKey, noMark, plain,
  105.         /* [2] */
  106.         "Reset Colors With RestoreDeviceClut", noIcon, noKey, noMark, plain
  107.     }
  108. };
  109.  
  110. resource 'DITL' (6010, "OK Alert", purgeable) {
  111.     {    /* array DITLarray: 3 elements */
  112.         /* [1] */
  113.         {80, 290, 100, 358},
  114.         Button {
  115.             enabled,
  116.             "OK"
  117.         },
  118.         /* [2] */
  119.         {80, 209, 100, 277},
  120.         StaticText {
  121.             disabled,
  122.             ""
  123.         },
  124.         /* [3] */
  125.         {7, 75, 71, 358},
  126.         StaticText {
  127.             disabled,
  128.             "^0"
  129.         }
  130.     }
  131. };
  132.  
  133. resource 'DITL' (6011, "OK/Cancel Alert", purgeable) {
  134.     {    /* array DITLarray: 3 elements */
  135.         /* [1] */
  136.         {80, 290, 100, 358},
  137.         Button {
  138.             enabled,
  139.             "OK"
  140.         },
  141.         /* [2] */
  142.         {80, 209, 100, 277},
  143.         Button {
  144.             enabled,
  145.             "Cancel"
  146.         },
  147.         /* [3] */
  148.         {7, 75, 71, 358},
  149.         StaticText {
  150.             disabled,
  151.             "^0"
  152.         }
  153.     }
  154. };
  155.  
  156. resource 'DITL' (6012, "Save Alert", purgeable) {
  157.     {    /* array DITLarray: 4 elements */
  158.         /* [1] */
  159.         {80, 290, 100, 358},
  160.         Button {
  161.             enabled,
  162.             "Save"
  163.         },
  164.         /* [2] */
  165.         {80, 209, 100, 277},
  166.         Button {
  167.             enabled,
  168.             "Cancel"
  169.         },
  170.         /* [3] */
  171.         {80, 75, 100, 155},
  172.         Button {
  173.             enabled,
  174.             "Don’t Save"
  175.         },
  176.         /* [4] */
  177.         {7, 75, 71, 358},
  178.         StaticText {
  179.             disabled,
  180.             "Save changes to the CheapScan document “"
  181.             "^0” before quitting?"
  182.         }
  183.     }
  184. };
  185.  
  186. resource 'DITL' (512, "Choose Profiles", purgeable) {
  187.     {    /* array DITLarray: 8 elements */
  188.         /* [1] */
  189.         {136, 368, 156, 426},
  190.         Button {
  191.             enabled,
  192.             "Match"
  193.         },
  194.         /* [2] */
  195.         {136, 297, 156, 355},
  196.         Button {
  197.             enabled,
  198.             "Cancel"
  199.         },
  200.         /* [3] */
  201.         {44, 15, 126, 215},
  202.         UserItem {
  203.             disabled
  204.         },
  205.         /* [4] */
  206.         {44, 232, 126, 432},
  207.         UserItem {
  208.             disabled
  209.         },
  210.         /* [5] */
  211.         {24, 15, 40, 215},
  212.         StaticText {
  213.             disabled,
  214.             "Source:"
  215.         },
  216.         /* [6] */
  217.         {24, 232, 40, 432},
  218.         StaticText {
  219.             disabled,
  220.             "Destination:"
  221.         },
  222.         /* [7] */
  223.         {4, 15, 20, 432},
  224.         StaticText {
  225.             disabled,
  226.             "Choose the source and destination profil"
  227.             "es"
  228.         },
  229.         /* [8] */
  230.         {20, 15, 22, 432},
  231.         UserItem {
  232.             disabled
  233.         }
  234.     }
  235. };
  236.  
  237. resource 'ALRT' (6010, "OK", purgeable) {
  238.     {0, 0, 108, 368},
  239.     6010,
  240.     {    /* array: 4 elements */
  241.         /* [1] */
  242.         OK, visible, silent,
  243.         /* [2] */
  244.         OK, visible, silent,
  245.         /* [3] */
  246.         OK, visible, silent,
  247.         /* [4] */
  248.         OK, visible, silent
  249.     }
  250. };
  251.  
  252. resource 'ALRT' (6011, "OK/Cancel", purgeable) {
  253.     {0, 0, 112, 368},
  254.     6011,
  255.     {    /* array: 4 elements */
  256.         /* [1] */
  257.         OK, visible, silent,
  258.         /* [2] */
  259.         OK, visible, silent,
  260.         /* [3] */
  261.         OK, visible, silent,
  262.         /* [4] */
  263.         OK, visible, silent
  264.     }
  265. };
  266.  
  267. resource 'ALRT' (6012, "Save/Cancel/Don’t Save", purgeable) {
  268.     {0, 0, 112, 368},
  269.     6012,
  270.     {    /* array: 4 elements */
  271.         /* [1] */
  272.         OK, visible, sound1,
  273.         /* [2] */
  274.         OK, visible, sound1,
  275.         /* [3] */
  276.         OK, visible, sound1,
  277.         /* [4] */
  278.         OK, visible, sound1
  279.     }
  280. };
  281.  
  282. resource 'STR#' (1000, "Memory Error Messages", purgeable) {
  283.     {    /* array StringArray: 2 elements */
  284.         /* [1] */
  285.         "There isn’t enough memory to open this a"
  286.         "pplication.",
  287.         /* [2] */
  288.         "There isn’t enough memory to open the do"
  289.         "cument."
  290.     }
  291. };
  292.  
  293. resource 'STR#' (1001, "Resource Error Messages", purgeable) {
  294.     {    /* array StringArray: 1 elements */
  295.         /* [1] */
  296.         "This application appears to be damaged. "
  297.         "Try using a different copy."
  298.     }
  299. };
  300.  
  301. resource 'STR#' (1002, "Miscellaneous Error Messages", purgeable) {
  302.     {    /* array StringArray: 3 elements */
  303.         /* [1] */
  304.         "An error that’s unrecognised by this app"
  305.         "lication has occured.",
  306.         /* [2] */
  307.         "QuickTime is not available on this Macin"
  308.         "tosh. QMundo requires QuickTime.",
  309.         /* [3] */
  310.         "Some sort of QuickTime error occured."
  311.     }
  312. };
  313.  
  314. resource 'STR#' (1003, "File Error Messages", purgeable) {
  315.     {    /* array StringArray: 1 elements */
  316.         /* [1] */
  317.         "This file can’t be opened because it’s a"
  318.         "lready open in another application."
  319.     }
  320. };
  321.  
  322. resource 'vers' (1, purgeable) {
  323.     0x1,
  324.     0x0,
  325.     development,
  326.     0x1,
  327.     verUS,
  328.     "1.0d1",
  329.     "1.0d1, © Apple Computer, Inc. 1991"
  330. };
  331.  
  332. resource 'SIZE' (-1, purgeable) {
  333.     reserved,
  334.     acceptSuspendResumeEvents,
  335.     reserved,
  336.     canBackground,
  337.     multiFinderAware,
  338.     backgroundAndForeground,
  339.     dontGetFrontClicks,
  340.     ignoreChildDiedEvents,
  341.     is32BitCompatible,
  342.     isHighLevelEventAware,
  343.     localAndRemoteHLEvents,
  344.     notStationeryAware,
  345.     dontUseTextEditServices,
  346.     reserved,
  347.     reserved,
  348.     reserved,
  349.     1593344,
  350.     393216
  351. };
  352.  
  353. resource 'MBAR' (128, purgeable) {
  354.     {    /* array MenuArray: 4 elements */
  355.         /* [1] */
  356.         128,
  357.         /* [2] */
  358.         129,
  359.         /* [3] */
  360.         130,
  361.         /* [4] */
  362.         131
  363.     }
  364. };
  365.  
  366. resource 'CNTL' (128, purgeable) {
  367.     {0, 0, 0, 0},
  368.     0,
  369.     visible,
  370.     0,
  371.     0,
  372.     scrollBarProc,
  373.     0,
  374.     ""
  375. };
  376.  
  377. resource 'CURS' (128, purgeable) {
  378.     $"0000 07E0 0FF0 1FF8 3FFC 7FFE 7FFE 7FFE"
  379.     $"7FFE 7FFE 7FFE 3FFC 1FF8 0FF0 07E0",
  380.     $"07E0 1FF8 3FFC 7FFE 7FFE FFFF FFFF FFFF"
  381.     $"FFFF FFFF FFFF 7FFE 7FFE 3FFC 1FF8 07E0",
  382.     {7, 7}
  383. };
  384.  
  385.